package com.ms.db.model.basic;

import java.util.HashMap;

import com.ms.player.Player;
import com.xpec.c4.db.model.PlayerModel;

/**
 * MODEL层的设置类
 * 
 * @author Bany
 * 
 */
public class ModelCfg implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1556546153219555907L;

	// 以下物品公用数据
	/**
	 * 物品ID
	 */
	public static final int GOODS_KINDID = 0;

	/**
	 * 物品堆叠数量
	 */
	public static final int GOODS_AMOUNT = 1;

	/**
	 * 物品KindID
	 */
	public static final int GOODS_ID = 2;

	/**
	 * 物品是否绑定
	 */
	public static final int GOODS_ISBIND = 3;

	// VO类和PO类的对应关系
	public static HashMap<Class<?>, Class<?>> mappingClass = new HashMap<Class<?>, Class<?>>();

	static {
		// VO->PO
		//mappingClass.put(Unit.class, UnitModel.class);
		//mappingClass.put(WorldObject.class, WorldObjectModel.class);
		mappingClass.put(Player.class, PlayerModel.class);
		//mappingClass.put(Pet.class, PetModel.class);
		//mappingClass.put(Account.class, AccountModel.class);
		//mappingClass.put(PlayerSocial.class, PlayerSocialModel.class);
		//mappingClass.put(CashData.class, CashDataModel.class);
		//mappingClass.put(PublicWarehouse.class, PublicWarehouseModel.class);
		
		// PO->VO
		//mappingClass.put(UnitModel.class, Unit.class);
		//mappingClass.put(WorldObjectModel.class, WorldObject.class);
		mappingClass.put(PlayerModel.class, Player.class);
		//mappingClass.put(PetModel.class, Pet.class);
		//mappingClass.put(AccountModel.class, Account.class);
		//mappingClass.put(PlayerSocialModel.class, PlayerSocial.class);
		//mappingClass.put(CashDataModel.class, CashData.class);
		//mappingClass.put(PublicWarehouseModel.class, PublicWarehouse.class);
	}

}
